package com.zhida.smartcontrol.pagectrl.projectdetail.zonemanager;

import com.zhida.smartcontrol.common.bean.LampBean;
import com.zhida.smartcontrol.mvp.BasePresenter;
import com.zhida.smartcontrol.mvp.BaseView;
import com.zhida.smartcontrol.pagectrl.projectdetail.GroupBean;

import java.util.List;

/**
 * author: tanjianpei
 * date: 2019/10/11 011 11:47
 * description:
 */
public class ZoneManagerContract {
    interface View extends BaseView {

        void showGroup(List<GroupBean> groupList);

        void showLamp(List<LampBean> lampBeans);
    }

    interface Presenter extends BasePresenter<View> {
        void requestGroup(String projectId);

        void requestDevice(String switchType, String groupId, boolean showLoading);

        void requestDelete(String id);

        void runningModel(List<LampBean> codeList, int type);

        void switchRepair(List<LampBean> codeList, int type);

        void resetSwitch(List<LampBean> codeList);
    }
}
